package com.demo.service;

import com.demo.dao.NewsMapper;
import com.demo.entity.News;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public interface NewsService {

    /**
     * 由id查询新闻
     * @return
     */
    News findNewsById(Integer id);


    List<News> findAll();
}
